package com.clwl.supervise.superviseapp.mapper.supervise;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.clwl.supervise.superviseapp.entity.supervise.JgNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface JgNoticeMapper extends BaseMapper<JgNotice> {
    /**
     * 根据通知类型分页获取通知列表
     * @param page
     * @param noticeType
     * @return
     */
    IPage<JgNotice> selectNoticePageByTypeAndCarousel(IPage<Map<String, Object>> page, @Param("noticeType")Long noticeType, @Param("isCarousel")Long isCarousel);

    List<JgNotice> selectNoticeByTypeAndCarousel( @Param("noticeType")Long noticeType, @Param("isCarousel")Long isCarousel);

    List<JgNotice> selectNoticeById(@Param("id")Long id);

}
